package Users;

import operation.*;//导入包operation中的所有类，这样我们就可以直接使用这些类

import java.util.Scanner;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: 李白
 * @Created: 2024/8/19 16:35
 */
public class Reader extends Users{
    @Override
    public void work() {

    }

    public Reader(String name){
        super(name);
        ioPreparations = new IOPreparation[]{
                new ExitOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation(),
        };
    }
    public int menu(){
        System.out.println("*********读者*********");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出系统");
        System.out.println("*********读者*********");
        System.out.println("请选择您的操作");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
